@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-5 col-12">
            <div class="card">
                <div class="card-header">{{ __('HSE联系点问题管理系统') }}</div>

                <div class="card-body">
                    <form method="POST" action="{{ url('/login') }}">
                        @csrf

                        <div class="input-group col-12 mt20">
                            <div class="input-group-prepend">
                                <span class="input-group-text" id="phone">手机号码</span>
                            </div>
                            <input type="text" id="phone" data-describedby="phone" class="form-control{{ $errors->has('phone') ? ' is-invalid' : '' }}" value="{{ old('phone') }}" placeholder="请输入手机号码" required autofocus name="phone">
                            @if ($errors->has('phone'))
                                <span class="invalid-feedback">
                                        <strong>{{ $errors->first('phone') }}</strong>
                                    </span>
                            @endif
                        </div>

                        <div class="input-group col-12 mt20">
                            <div class="input-group-prepend">
                                <span class="input-group-text" id="password">{{ __('登录密码') }}</span>
                            </div>
                            <input type="password" id="password" data-describedby="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" value="{{ old('password') }}" placeholder="请输入密码" required name="password">
                            @if ($errors->has('password'))
                                <span class="invalid-feedback">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                            @endif
                        </div>

                        <div class="form-group col-12">
                            <button type="submit" class="btn btn-primary col-12">
                                {{ __('登录') }}
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
